package com.castudio.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castudio.Entity.Activity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小陈同学
 * @since 2023-01-19
 */
@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {

    List<Activity> getAllActivities(Integer page,Integer size,String title);

    Long getTotal(String title);

    void insert(String fileUrl,String title,String profile,String author,String categories,
                String content);

    void insertImg(String image);

}
